package com.csun.cmny.provider.model.dto.life;

import com.csun.cmny.provider.validator.OmcLifeRoomAddValidator;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class LifeRoomDto implements Serializable {

    /*
    * 房间id
    * */
    private Long id;

    /*
     * 房间号
     * */
    @NotNull(message = "{room.no.null}" ,groups = {OmcLifeRoomAddValidator.class})
    private String roomNo;

    /**
     * 楼栋Id
     */
    @NotNull(message = "{building.id.null}" ,groups = {OmcLifeRoomAddValidator.class})
    private Long buildingId;

    /**
     * 楼层号
     */
    @NotNull(message = "{floor.no.null}" ,groups = {OmcLifeRoomAddValidator.class})
    private Integer floorNo;

    /*是否有厕所 0-否 1-是*/
    @NotNull(message = "{room.hasToilet.null}")
    private Integer hasToilet;

    /**
     * 机构Id
     */
    private Long groupId;
}
